import {Component, OnInit} from '@angular/core';
import {Location} from '@angular/common';
import {Router} from '@angular/router';

@Component({
  selector: 'app-detail',
  templateUrl: './detail.component.html',
  styleUrls: ['./detail.component.scss']
})
export class DetailComponent implements OnInit {

  constructor(
    private location: Location,
    private router: Router
  ) {
  }

  ngOnInit(): void {
  }

  backward() {
    this.location.back();
  }

  add() {
    this.router.navigate(['/server/new']);
  }
}
